<?php

  $str = "luo''<h1>123</h1>";
   
  $str1 = addcslashes(htmlentities($str),"1");
    
 // $str1 =  htmlspecialchars($str);
   $str2 = html_entity_decode($str1);
 echo $str1;
   
   echo $str2;

  copy('./1.txt', '3.html');
  
   

   // file_put_contents('./2.html', 'AAA91239',FILE_APPEND);
    //$f = file_get_contents('./2.html');

   // echo $f;

     
     $file = fopen('./2.html','w');

  //   echo  fread($file, filesize('./2.html'));

  //   echo $wenjian;
   
     fwrite($file, 'luoqifang123');

    while(!feof($file)){
     //	echo fgets($file).'<br/>';
     }
    

    //fclose($file);
    
   
     fopen("./ceshi.php", "w");
?>